取消运单

取消运单

POST/v1/open-api/label/cancel

请求头部

标签必填说明
Api-KeyApi Key,请登录系统,在我的个人资料中找到
Api-SecretApi Secret,请登录系统,在我的个人资料中找到

Body参数

参数名类型必填
order_num[string]
curl -X POST  \
  'https://api.sandbox.shipber.com/v1/open-api/label/cancel' \
  -H 'Content-Type:application/json' \
  -H 'Api-Key:2cn1wgmfidytin3jef3b' \
  -H 'Api-Secret:qRBYybjRch7BdTxO5NTyGUd6mBvowNbsjahnAnpdI-BXc5sCrRt15XGr-hc9oY7C' \
  -d '{"order_num":"cimy-977885"}'
{
    "data": {
        "status": "",
        "order_num": "",
        "custom_order_num": "",
        "shipment": {
            "carrier_service": "UPS Ground",
            "ship_from": {
                "uuid": "22d953b7-24c4-4ae9-afb4-111cc227b01e",
                "postal_code": "90045",
                "country_code": "US",
                "state_province_code": "CA",
                "is_residential": false,
                "addresses": ["5353 W Imperial Hwy Unit 900"],
                "city": "Los Angeles",
                "address_classification": "Commercial",
                "name": "Amazon",
                "phone": "0000000000",
                "attention": "Tom"
            },
            "ship_to": {
                "postal_code": "90045",
                "country_code": "US",
                "state_province_code": "CA",
                "is_residential": false,
                "addresses": ["5353 W Imperial Hwy Unit 900"],
                "city": "Los Angeles",
                "address_classification": "Commercial",
                "name": "Amazon",
                "phone": "0000000000",
                "attention": "Tom"
            },
            "packages": [{
                "dimension": {
                    "width": 10,
                    "height": 10,
                    "length": 10,
                    "code": "IN"
                },
                "weight": {
                    "code": "LBS",
                    "value": 20
                },
                "confirmation": "None",
                "insurance": {
                    "code": "USD",
                    "value": 20
                },
                "quantity": 1,
                "reference_numbers": [{
                    "code": "",
                    "value": "Test reference"
                }]
            }],
            "package_type": {
                "type": "common",
                "name": "Package"
            },
            "pickup_date": "20201029",
            "service_code": ""
        },
        "created_at": "2020-12-16T13:05:58.094Z"
    }
}